#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import lxml.html
from readability import Document


def extract_summary(html):
    """Extracts content placed between html tags.

    Args:
        html (str): HTML page containing text.

    Returns:
        str: Text summary extracted from HTML.
    """

    html = Document(html).summary()

    return lxml.html.fromstring(html).text_content()
